package com.rose.datax.dataxadmin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.rose.datax.dataxadmin.convert.Convert;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseEntity extends Convert implements Serializable {
    private static final long serialVersionUID = -1886975781985203605L;
    @TableId(value = "id", type=IdType.AUTO)
    private Long id;
    @TableField("gmtCreated")
    private Date gmtCreated = new Date();
    @TableField("gmtModify")
    private Date gmtModify = new Date();

}
